/**
 * 
 */
package org.vsg.stock.basic.domain;

import java.io.Serializable;
import java.util.List;
import java.util.Vector;

/**
 * @author Bill Vison
 *
 */
public class BalanceLine implements Serializable {
	
	public static final String FORM_V = "V";
	
	/**
	 * oblique line
	 */
	public static final String FORM_O = "O";
	
	public static final String FORM_H = "H";
	
	private String lineId;
	
	private String stockCode;
	
	private String form;
	
	private List<BalanceLineKeyPoint> keyPoints = new Vector<BalanceLineKeyPoint>();

	private static org.vsg.common.biz.uid.IdGenerator idGen  = new org.vsg.common.biz.uid.IdGenerator();
	
	private List<BalanceLineCharacter> charasters = new Vector<BalanceLineCharacter>();
	
	public String getLineId() {
		return lineId;
	}

	public void setLineId(String lineId) {
		this.lineId = lineId;
	}



	public String getStockCode() {
		return stockCode;
	}


	public void setStockCode(String stockCode) {
		this.stockCode = stockCode;
	}


	public List<BalanceLineKeyPoint> getKeyPoints() {
		return keyPoints;
	}


	public void setKeyPoints(List<BalanceLineKeyPoint> keyPoints) {
		this.keyPoints = keyPoints;
	}
	
	public void addKeyPoint(BalanceLineKeyPoint point) {
		if ( !this.keyPoints.contains( point )) {
			this.keyPoints.add( point );
		}
	}

	public List<BalanceLineCharacter> getCharasters() {
		return charasters;
	}

	public void setCharasters(List<BalanceLineCharacter> charasters) {
		this.charasters = charasters;
	}

	public String getForm() {
		return form;
	}

	public void setForm(String form) {
		this.form = form;
	}

	@Override
	public String toString() {
		return "BalanceLine [lineId=" + lineId
				+ ", stockCode=" + stockCode + "]";
	}




}
